﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns="http://schemas.microsoft.com/pag/gax-core">
  <Actions>
    <Action Name="GenerateStoredProcedures" 
            Type="Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.TextTemplateAction, Microsoft.Practices.RecipeFramework.VisualStudio.Library"
            Template="T4\SP\SqlServer\StoredProcedures.t4">
      <Input Name="TableStoredProcedureMappings" RecipeArgument="TableStoredProcedureMappings"/>
      <Output Name="Content"/>
    </Action>
    <Action Name="AddStoredProcedures" 
            Type="AddItemFromStringAction" 
            Open="true">
      <Input Name="Content" ActionOutput="GenerateStoredProcedures.Content" />
      <Input Name="Project" RecipeArgument="DataAccessProject" />
      <Input Name="TargetFileName" RecipeArgument="StoredProceduresFileName" />
    </Action>
  </Actions>
</Recipe>